package com.itheima.pojo;

public class ShowMovie {


    private String movieName; //电影名称
    private String director;  //导演
    private String actor;     //主演
    private String profile;   //简介
    private int duration;     //时长




    private double startTime; //开始时间
    private double price; //票价

    public ShowMovie(String movieName, String director, String actor, String profile,
                     int duration, double startTime, double price) {
        this.movieName = movieName;
        this.director = director;
        this.actor = actor;
        this.profile = profile;
        this.duration = duration;
        this.startTime = startTime;
        this.price = price;
    }

    public ShowMovie() {
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public double getStartTime() {
        return startTime;
    }

    public void setStartTime(double startTime) {
        this.startTime = startTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "电影:" + movieName + "\n" +
                "导演:" + director + "\n" +
                "主演:" + actor + "\n" +
                "简介:" + profile + "\n" +
                "时长:" + duration +"小时" +"\n"+
                "开始时间:" + startTime + "\n" +
                "价格:" + price +"元";
    }
}
